<?xml version="1.0" encoding="utf-8"?>

<EFFECT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns ="urn:dsfx0">

  <STORAGE_IMAGE>
    <NAME>i_SrcImage</NAME>
    <DECLARATION>
      <TYPE>image3D</TYPE>
      <FORMAT>rgba8</FORMAT>
      <QUALIFIERS>
        <QUALIFIER>coherent</QUALIFIER>
      </QUALIFIERS>
      <OPTION_GRAMMAR>MIPMAP_MODE=3</OPTION_GRAMMAR>
    </DECLARATION>
    <DECLARATION>
      <TYPE>image3D</TYPE>
      <FORMAT>r8</FORMAT>
      <QUALIFIERS>
        <QUALIFIER>coherent</QUALIFIER>
      </QUALIFIERS>
      <OPTION_GRAMMAR>!MIPMAP_MODE</OPTION_GRAMMAR>
      <OPTION_GRAMMAR>MIPMAP_MODE=0</OPTION_GRAMMAR>
      <OPTION_GRAMMAR>MIPMAP_MODE=1</OPTION_GRAMMAR>
      <OPTION_GRAMMAR>MIPMAP_MODE=2</OPTION_GRAMMAR>
    </DECLARATION>
  </STORAGE_IMAGE>

  <STORAGE_IMAGE>
    <NAME>i_DstImage</NAME>
    <DECLARATION>
      <TYPE>image3D</TYPE>
      <FORMAT>rgba8</FORMAT>
      <QUALIFIERS>
        <QUALIFIER>coherent</QUALIFIER>
      </QUALIFIERS>
      <OPTION_GRAMMAR>MIPMAP_MODE=3</OPTION_GRAMMAR>
    </DECLARATION>
    <DECLARATION>
      <TYPE>image3D</TYPE>
      <FORMAT>r8</FORMAT>
      <QUALIFIERS>
        <QUALIFIER>coherent</QUALIFIER>
      </QUALIFIERS>
      <OPTION_GRAMMAR>!MIPMAP_MODE</OPTION_GRAMMAR>
      <OPTION_GRAMMAR>MIPMAP_MODE=0</OPTION_GRAMMAR>
      <OPTION_GRAMMAR>MIPMAP_MODE=1</OPTION_GRAMMAR>
      <OPTION_GRAMMAR>MIPMAP_MODE=2</OPTION_GRAMMAR>
    </DECLARATION>
  </STORAGE_IMAGE>
  
  <TECHNIQUE>
    <NAME>PostProcess</NAME>

    <COMPUTE_PASS>
      <NAME>Clear</NAME>
      <COMPUTE_STAGE>PostEffect_VoxelMipmap</COMPUTE_STAGE>
    </COMPUTE_PASS>

  </TECHNIQUE>

</EFFECT>
